<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        .banner{          
            height: 300px;
            width: 390px;
            background-color: aqua;
            border: 2px solid black;
            margin: 50px auto;
            overflow: hidden; 
        }

    </style>
</head>
<body>
    <div>
        <div class="banner"></div>
    </div>
</body>
<script src="js/lunbo.js"></script>
<script>
    var Odiv=document.getElementsByClassName('banner')[0];
    var imgs=[
        {imgUrl:"./img/玫瑰1.jpg",link:"http://www.naodu.com"},
        {imgUrl:"./img/玫瑰3.jpg",link:"http://www.naodu.com"},
        {imgUrl:"./img/乒乓菊粉色1.jpg",link:"http://www.naodu.com"},
        {imgUrl:"./img/玫瑰香槟色1.jpg",link:"http://www.naodu.com"},
        {imgUrl:"./img/玫瑰香槟色2.jpg",link:"http://www.naodu.com"},
        {imgUrl:"./img/玫瑰黑色.jpg",link:"http://www.naodu.com"}
    ]
    createBannerArea(Odiv,imgs);
</script>
</html>